this._notDisplayedResult = [];
this._terms = [];
- this._pendingClear = false;
},
getResultsForDisplay: function() {
- let alreadyVisible = this._pendingClear ? 0 : this.getVisibleResultCount();
- let canDisplay = MAX_LIST_SEARCH_RESULTS_ROWS - alreadyVisible;
-
+ let canDisplay = MAX_LIST_SEARCH_RESULTS_ROWS;
let newResults = this._notDisplayedResult.splice(0, canDisplay);
return newResults;
},
// copy the lists
this._notDisplayedResult = results.slice(0);
this._terms = terms.slice(0);
- this._pendingClear = true;
},
_keyFocusIn: function(icon) {
clear: function () {
this._content.destroy_all_children();
- this._pendingClear = false;
},
getFirstResult: function() {
this._notDisplayedResult = [];
this._terms = [];
- this._pendingClear = false;
},
getResultsForDisplay: function() {
- let alreadyVisible = this._pendingClear ? 0 : this._grid.visibleItemsCount();
- let canDisplay = this._grid.childrenInRow(this.actor.width) * this._grid.getRowLimit()
- - alreadyVisible;
-
+ let canDisplay = this._grid.childrenInRow(this.actor.width) * this._grid.getRowLimit();
let newResults = this._notDisplayedResult.splice(0, canDisplay);
return newResults;
},
// copy the lists
this._notDisplayedResult = results.slice(0);
this._terms = terms.slice(0);
- this._pendingClear = true;
},
_keyFocusIn: function(icon) {
clear: function () {
this._grid.removeAll();
- this._pendingClear = false;
},
getFirstResult: function() {